package cn.wolfocde.luowowo.repository;

import cn.wolfcode.luowowo.search.template.DestinationTemplate;
import cn.wolfcode.luowowo.search.template.TravelTemplate;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

/**
 * 封装的工具类,作用等于mapper
 */
@Repository
public interface DestinationTemplateRepository extends ElasticsearchRepository<DestinationTemplate, Long> {
    /**
     * 通过name查询目的地对象
     * @param keyword
     * @return
     */
    DestinationTemplate findByName(String keyword);
}

